package com.game.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author lvhao
 * @since 2020-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class User extends Model<User> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 账号
     */
    @ApiModelProperty(value = "账号")
    private String username;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 登陆时间
     */
    @ApiModelProperty(value = "登录时间")
    private String loginTime;

    /**
     * 用户效验时间
     */
    @ApiModelProperty(value = "用户效验时间")
    private String checkTime;

    /**
     * 用户禁止登录时间
     */
    @ApiModelProperty(value = "用户禁止登录时间")
    private String banTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
